package com.zbkj.crmeb.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 复购奖级表
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_user_invite_reward")
@ApiModel(value="UserInviteReward对象", description="用户复购奖级表")
public class UserInviteReward implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "奖励用户id")
    private Integer userId;

    @ApiModelProperty(value = "奖励月份id")
    private Integer monthId;

    @ApiModelProperty(value = "奖励类型：0.升级1.复购")
    private Integer rewardType;

    @ApiModelProperty(value = "复购用户id")
    private Integer inviteUserId;

    @ApiModelProperty(value = "复购人昵称")
    private String inviteUserName;

    @ApiModelProperty(value = "复购人头像")
    private String inviteUserLogo;

    @ApiModelProperty(value = "购买商品")
    private String buyProduct;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "订单No")
    private String orderNo;

    @ApiModelProperty(value = "复购数量")
    private Integer num;

    @ApiModelProperty(value = "复购奖励金额")
    private BigDecimal reward;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
